<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>聚合搜索</title>
    <script src="jquery.min.js"></script>
</head>
<body>
    <div style="width:100%; text-align: center;">
    <input type="button" value = "搜狗" onclick="upSearch('https://www.sogou.com/')"> &nbsp;&nbsp;&nbsp;&nbsp;
  
    <input type="button" value = "360" onclick="upSearch('https://www.so.com/')"> &nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    <hr>
    <iframe id="ifr" style="width:100%; height: 600px;" src="https://www.sogou.com/"></iframe>
    <script>
        function upSearch(url) {
            jQuery("#ifr").attr("src",url); //属性 src 设置为url
        }
        </script>
</body>
</html>